/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Business;

import java.util.ArrayList;
import tuitionmanagement.DAO.InvoiceDao;
import tuitionmanagement.entity.Invoice;

/**
 *
 * @author XUAN
 */
public class InvoiceBuss {

    InvoiceDao indao = new InvoiceDao();
    private String lastError;

    public ArrayList<Invoice> readByAll() {
        return indao.readByAll();
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }


//    public boolean addInvoice(InvoiceEntity invoice) {
//        return indao.addInvoice(invoice);
//    }
//
}
